
package com.work.pdf;

import com.itextpdf.text.*;
import com.work.util.Log;

public abstract class PdfDecorator {

	protected Document document;

	public PdfDecorator(Document document) {
		this.document = document;
		try {
			/*FONT_TIMES_10_BOLD_BLACK = PdfUtils.createFont(BaseFont.TIMES_ROMAN, 10, Font.BOLD, Color.BLUE);
			FONT_TIMES_10_NORMAL_BLACK = PdfUtils.createFont(BaseFont.TIMES_ROMAN, 10, Font.NORMAL, Color.BLACK);
			FONT_TIMES_10_ITALIC_BLACK = PdfUtils.createFont(BaseFont.TIMES_ROMAN, 10, Font.ITALIC,Color.BLACK);*/
		} catch (Exception e) {
			Log.error(PdfDecorator.class, "Błąd podczas inicjalizacji czcionek dla generowanego PDF-a");
		}
	}

	public abstract void decorate() throws DocumentException;
}
